
		<div style="margin-top: 20px;"><?php echo __('search_candidate',null,'candidate_candidates')?></div>
		<div class="box-content-main">
			<table class="table-list" cellspacing="0" cellpadding="0" border="1" style="border-collapse: collapse;">
				<tr>
					<td class="head title"><?php echo __('head_name',null,'candidate_candidates')?></td>
					<td class="head major"><?php echo __('head_major',null,'candidate_candidates')?></td>
					<td class="head area"><?php echo __('head_work_area',null,'candidate_candidates')?></td>
					<td class="head salary"><?php echo __('head_salary',null,'candidate_candidates')?></td>
					<td class="head year"><?php echo __('head_year',null,'candidate_candidates')?></td>
					<td class="head action"><?php echo __('head_action',null,'candidate_candidates')?></td>
				</tr>
				
			<?php
			foreach ( $data ['candidates'] as $val ) :
				?>
				<tr	 >
					<td class="name">
						<a href="#"	data-id="<?php echo $val['id']?>" data-apply="<?php echo __('control_apply', null, 'candidate_candidates')?>" class="candidate-detail">
							<?php echo $val['full_name']?>
						</a>
					</td>
					<td class="area">
						<?php
							$majors = MasterMajorsTable::getDataListByCandidateId($val ['id'] );
							$str = '';
							foreach ( $majors as $m ) :
								echo $str, $m ['name'];
								$str = ', ';
							endforeach;
						?>
					</td>
					
					<td class="area">
						<?php
							$areas = LocationCitiesTable::getDataListByCandidateId($val ['id'] );
							$str = '';
							foreach ( $areas as $m ) :
								echo $str, $m ['name'];
								$str = ', ';
							endforeach;
						?>
					</td>
					<td class="salary">
						<?php echo intval($val['salary_require'])>0?(sfConfig::get('app_currency_symbol').$val['salary_require']):__('label_salary_discuss',null,'candidate_candidates')?>
					</td>
					<td class="year">
						<?php echo date('Y',strtotime($val['date_of_birth'])) ?>
					</td>
					<td class="action">
						<a href="#" class="apply-insert" data-title="<?php echo __('apply_title', null, 'candidate_candidates')?>" data-candidate-id="<?php echo $val['id']?>" data-job-id="<?php echo $data['id']?>" title="<?php echo __('apply', null, 'candidate_candidates')?>" ><img src="/css/admin/img/global/control-enable.png" /></a>
						 <a target="_blank" href="<?php echo sfConfig::get('app_prefix').url_for2('candidate_export_pdf',array('sf_culture'=>$sf_user->getCulture(),'id'=>$val['id'],'action_name'=>ADMIN_DEFINED::AJAX_PDF))?>" title="<?php echo __('export-pdf',null,'table_list')?>"><img src="/css/admin/img/global/pdf-icon.png"/></a>
					</td>
				</tr>	
				<?php endforeach;?>
				<?php if(count($data['candidates'])==0):?>
				<tr>
					<td colspan="6">
						<div class="note"><?php echo __('no_row_founded',null,'table_list')?></div>
					</td>
				</tr>
				<?php endif;?>
			</table>
		</div>	